﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="CercaOfferte.aspx.cs"
 Inherits="Contents_CercaOfferte"  EnableTheming="true" Theme="Tema1" StylesheetTheme="Tema1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

		<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>

<table cellpadding="0" cellspacing="0">
<tr>
<td style="background-color: #0094FF; vertical-align:top;">
	<img alt="." src="../Img/sfondi/corner_left_sopra.png" 
				style="width: 11px;vertical-align :top ;";  />
</td>
<td valign="top" style="background-color: #0094FF; height:0px;">
</td>
<td style="background-color: #0094FF; vertical-align:top;">
	<img alt="." src="../Img/sfondi/corner_right_sopra.png" 
				style="width: 11px; vertical-align :top ;" />
</td>
</tr>

<tr>
<td valign="top" style="background-color: #0094FF">
</td>
		
<td valign="top">
		

		<table cellspacing="3" class="tabInput">
		<caption style="background-color: #0094FF"><b>
				Proposta di acquisto (agente di acquisto) <br />
				</b></caption>
				<tr>
						<td style="border:outset 1px gray; vertical-align:top; padding:5px;" >
						  <span style="color: #0033CC"><b>Tipologia merce </b></span>
								<br />
							<asp:ListBox ID="ListBoxMerceologie" runat="server" AutoPostBack="True" 			
								onselectedindexchanged="ListBoxMerceologie_SelectedIndexChanged"						
										Width="170px"></asp:ListBox>
						</td>
						<td style="border:outset 1px gray; vertical-align:top; padding:5px;">
								<b><span style="color: #0000FF">Categoria</span><span style="color: #0033CC">
								</span> </b>
								<br style="color: #0033CC" />
								<asp:ListBox ID="ListBoxCatMerceologie" runat="server" Width="200px" 
										style="color: #0033CC"></asp:ListBox>
								</td>
						<td align="left" rowspan="2"  style="border:outset 1px gray; vertical-align:top; padding:5px;">
										<span style="color: #0000FF"><b>Disponibile dal </b></span>
								<%--//--%>
								<table cellpadding="3px"><tr><td>
										Giorno</td>
										<td>
										<asp:TextBox ID="TxtDataDispDAL" runat="server"></asp:TextBox>
         <ajax:CalendarExtender ID="CalExt1" runat="server" Animated="true" CssClass="MyCalendar"
          EnabledOnClient="true" TargetControlID="TxtDataDispDAL"></ajax:CalendarExtender>
										</td></tr>
										<tr>
										<td>
										Orario
										</td>
										<td>
										<asp:DropDownList ID="DropDownORE" runat="server">
										</asp:DropDownList>
										</td>
										</tr>
										<tr>
										<td>O da</td>
										<td>
												<asp:CheckBox ID="CheckDalSubito" runat="server" Text="Subito" />
										</td>
										</tr>
										
										</table>
								<%--//--%>
										<br />
										<span style="color: #0000FF"><b>Trasporto organizzato da</b></span> <br />
										
										
								
										<asp:CheckBox ID="CheckTraspOrganizzatoDaNoi" runat="server" Text="Noi" />
										<br />
										
										
								
						</td>
				</tr>
			
				<tr>
						<td style="border:outset 1px gray; vertical-align:top; padding:5px;">
						
														<b><span style="color: #0000FF">Quantità </span>
														<br />
														</b>
								<asp:TextBox ID="TxtQTA" runat="server" Columns="10" Rows="1" Width="100px"></asp:TextBox>
									<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server"
										TargetControlID="TxtQTA" FilterType="Custom, Numbers" ValidChars="," />
							<%--	<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtQTA"
								ErrorMessage=" <<<--" Display="Dynamic" ></asp:RequiredFieldValidator>--%>
								<ajax:TextBoxWatermarkExtender ID="TBWE2" runat="server"
										TargetControlID="TxtQTA" WatermarkText="quantità (xxx,x)" WatermarkCssClass="watermarked" />
								
								<asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TxtQTA"
										CultureInvariantValues="false" EnableClientScript="true" MinimumValue="0" MaximumValue="99000,9"
										SetFocusOnError="true" Type="double" Display="Dynamic" ErrorMessage="Error"></asp:RangeValidator>

								<table>
										<tr>
												<td>
														<asp:RadioButton ID="RadioButton4" runat="server" GroupName="qtà1" Text="Ton" 
																ToolTip="Tonnellate" Checked="True" />
												</td>
												<td>
														<asp:RadioButton ID="RadioButton5" runat="server" GroupName="qtà1" Text="Qli" />
												</td>
												<td>
														<asp:RadioButton ID="RadioButton6" runat="server" GroupName="qtà1" Text="Kg" />
												</td>
										</tr>
								</table>

						</td>
						<td style="border:outset 1px gray; vertical-align:top; padding:5px;">
													 
						  <span style="color: #0000FF"><b>Prezzo </b></span>
								<br />
								<asp:TextBox ID="TxtPrice" runat="server" Columns="15" Width="100px"></asp:TextBox>
								<ajax:FilteredTextBoxExtender ID="ftbe2" runat="server"
										TargetControlID="TxtPrice" FilterType="Custom, Numbers" ValidChars="," />
								<asp:RangeValidator ID="RangeValidatorPrice" runat="server" 
										ControlToValidate="TxtPrice" Display="Dynamic" ErrorMessage="Error" 
										MaximumValue="999000" MinimumValue="0" SetFocusOnError="True" Type="Currency"></asp:RangeValidator>
							
								<ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server"
										TargetControlID="TxtPrice" WatermarkText="prezzo (xxx,xx)" WatermarkCssClass="watermarked" />

								<br />
								<asp:CheckBox ID="CheckIsTrattabile" runat="server" Text="Prezzo trattabile" />
								<br />
								<asp:CheckBox ID="CheckNoIntermediari" runat="server" Text="No Intermediari" />

						</td>
				</tr>
			
				<tr>
						<td colspan="2" style="border: outset 1px gray; vertical-align: top; padding: 5px;">
								<span style="color: #0000FF; font-weight: bold;">Sconto %</span>
								<table cellspacing="5px">
										<tr>
												<td>
														<asp:DropDownList ID="DropDownSconto" runat="server">
														</asp:DropDownList>
												</td>
												<td style="white-space: nowrap;">
														per acquisti sopra
												</td>
												<td>
														<asp:TextBox ID="TextBoxQtasconto" runat="server" Columns="10" Rows="1" Width="100px"></asp:TextBox>
														<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server"
																TargetControlID="TextBoxQtasconto" FilterType="Custom, Numbers" ValidChars="," />
														<table>
																<tr>
																		<td>
																				<asp:RadioButton ID="RadioButton1" runat="server" GroupName="qtà" Text="Ton" 
																						ToolTip="Tonnellate" Checked="True" />
																		</td>
																		<td>
																				<asp:RadioButton ID="RadioButton2" runat="server" GroupName="qtà" Text="Qli" />
																		</td>
																		<td>
																				<asp:RadioButton ID="RadioButton3" runat="server" GroupName="qtà" Text="Kg" />
																		</td>
																</tr>
														</table>
														<tr>
																<td valign="top">
																		<asp:DropDownList ID="DropDownList1" runat="server">
																		</asp:DropDownList>
																</td>
																<td style="white-space: nowrap; vertical-align:top;">
																		per pagam. entro
																</td>
																<td style="vertical-align:top;">
																		<asp:RadioButton ID="RadioScontoVistaFatt" GroupName="entro" runat="server" Text="Vista fatt." />
																		<asp:RadioButton ID="RadioSconto15gg" GroupName="entro" runat="server" Text="15 gg." />
																		<asp:RadioButton ID="RadioSconto30gg" GroupName="entro" runat="server" Text="30 gg." />
																</td>
														</tr>
								</table>
								<%--//	--%>
						</td>
						<td valign="top">
								<b><span style="color: #0000FF">Confezionamento</span><br />
								</b>
								<asp:RadioButton ID="RadioConfezImballato" runat="server" GroupName="confez" 
										Text="Imballato" Checked="True" />
								<br />
								<asp:RadioButton ID="RadioConfezPallet" runat="server" Text="Pallet" 
										GroupName="confez" />
&nbsp;
								<asp:RadioButton ID="RadioConfezSfuso" runat="server" Text="Sfuso" 
										GroupName="confez" />
								<br />
								<br />
								<span style="color: #0000FF"><b>Porto</b></span>
								<br />
								<asp:RadioButton ID="RadioPortoAssegnato" runat="server" GroupName="porto" 
										Text="Assegnato" Checked="True" />
								&nbsp;
								<asp:RadioButton ID="RadioPortoFranco" runat="server" GroupName="porto" Text="Franco" />
						</td>
						
				</tr>
			
				<tr>
						<td colspan="2" valign="top">
								<b><span style="color: #0000FF">Modalità pagamento</span><br />
								&nbsp;</b><asp:CheckBox ID="CheckPagam_CartaC" runat="server" Text="Carta credito" />
								<asp:CheckBox ID="CheckPagam_Bonifico" runat="server" Text="Bonifico banc." />
						</td>
						<td>
								
								<asp:ImageButton ID="ImageButton1" runat="server" AlternateText="Invia" 
								OnClientClick="return go(this);" BorderStyle="None" 
										ImageAlign="Middle" ImageUrl="~/Img/Ok.jpg" onclick="ImageButton1_Click" />
								
								</td>
				</tr>
			
		</table>

</td>
<td valign="top" style="background-color: #0094FF"></td>
</tr>
<tr>
<td style="background-color: #0094FF; vertical-align:bottom;">
<img  src="../Img/sfondi/corner_left_sotto.png"  style="vertical-align:bottom;" />
</td>
<td style="background-color: #0094FF;">
</td>
<td style="background-color: #0094FF;vertical-align:bottom;">
		<img src="../Img/sfondi/corner_right_sotto.png" style="vertical-align:bottom;"  />
</td>
</tr>

</table>

     		<script language="javascript" type="text/javascript">

     				function go(obj) {
     						return confirm('Procedere con l\'operazione ?\n'); 		
     				}

     				function GetCatMerc(obj) {

     						//var id = obj.options[obj.selectedIndex].value;

     						alert('');
     						PageMethods.GetCatMerc(null, 1, OnSucceeded, OnFailed);
     				}

     				function OnSucceeded() {
     						alert('ok');
     						//$get("ContactFieldset").innerHTML = "<p>Thank you!</p>";
     				}

     				function OnFailed(error) {
     						// Alert user to the error.
     						alert(error.get_message());
     				}

</script>



   
</ContentTemplate>
		</asp:UpdatePanel>



</asp:Content>

